package cn.edu.ujn.liuklab3.service;

import cn.edu.ujn.liuklab3.entity.Category;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface CategoryService {

    cn.edu.ujn.util.Page<Category> selectAll(Category category);

    List<Category> findAll();

    Category queryById(Integer cateId);

    Page<Category> queryByPage(Category category, PageRequest pageRequest);

    Category insert(Category category);

    Category update(Category category);

    boolean deleteById( Integer userId);

}
